<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_number" data-rule="required" class="form-control" name="row[order_number]" type="text" value="{$row.order_number|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Product_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product_id" data-rule="required" data-source="product/index" class="form-control selectpage" name="row[product_id]" type="text" value="{$row.product_id|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/index" data-field="name" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} disabled /> {$vo}</label>
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_price" data-rule="required" class="form-control" step="0.01" name="row[order_price]" type="number" value="{$row.order_price|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Min_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-min_time" data-rule="required" class="form-control" disabled data-use-current="true" name="row[min_time]" type="text" value="{$row.min_time|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('After_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-after_price" data-rule="required" class="form-control" step="0.01" disabled name="row[after_price]" type="number" value="{$row.after_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('After_min_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-after_min_time" data-rule="required" class="form-control" disabled  data-use-current="true" name="row[after_min_time]" type="text" value="{$row.after_min_time|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-number" data-rule="required" class="form-control" name="row[number]" disabled type="number" value="{$row.number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Specs_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-specs_id" data-rule="required" data-source="specs/index" disabled class="form-control selectpage" name="row[specs_id]" type="text" value="{$row.specs_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Qr_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-qr_code" class="form-control" disabled name="row[qr_code]" type="text" value="{$row.qr_code|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Qr_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-qr_number" class="form-control" disabled name="row[qr_number]" type="text" value="{$row.qr_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Admission_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admission_time" data-rule="required" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[admission_time]" type="text" value="{:$row.admission_time?datetime($row.admission_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Appearance_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-appearance_time" data-rule="required" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[appearance_time]" type="text" value="{:$row.appearance_time?datetime($row.appearance_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tk_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tk_number" class="form-control" name="row[tk_number]" disabled type="number" value="{$row.tk_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tk_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tk_price" data-rule="required" disabled class="form-control" step="0.01" name="row[tk_price]" type="number" value="{$row.tk_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Diff_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-diff_time" data-rule="required" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[diff_time]" type="text" value="{:$row.diff_time?datetime($row.diff_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Over_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-over_time" data-rule="required" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[over_time]" type="text" value="{:$row.over_time?datetime($row.over_time):''}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Product_snapshot')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <textarea id="c-product_snapshot" class="form-control " rows="5" name="row[product_snapshot]" cols="50">{$row.product_snapshot|htmlentities}</textarea>-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" data-rule="required" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:$row.create_time?datetime($row.create_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Update_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-update_time" data-rule="required" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[update_time]" type="text" value="{:$row.update_time?datetime($row.update_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Refund_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-refund_time" data-rule="required" disabled class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[refund_time]" type="text" value="{:$row.refund_time?datetime($row.refund_time):''}">
        </div>
    </div>

    {if $row['tk_order'] == 1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tk_order')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-tk_order" data-rule="required" class="form-control selectpicker" name="row[tk_order]">
                <option value="1" {in name="key" value="$row.tk_order"}selected{/in}>退款中</option>
                <option value="2" {in name="key" value="$row.tk_order"}selected{/in}>退款完成</option>
            </select>
            <p style="color: red;margin-top: 10px;">温馨提示：请核对信息并确认退款金额过后进行退款</p>
        </div>
    </div>
    {/if}
    <input type="hidden" name="row[old_status]" value="{$row.status}">
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
<!--            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>-->
        </div>
    </div>
</form>
